package ai.yue.open.service.cd.ipo;

import ai.yue.library.base.ipo.ValidationGroups;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 配置-通知
 *
 * @author yl-yue
 * @since  2023/2/7
 */
@Data
public class ConfNotifyIPO {

    private static final long serialVersionUID = 1L;

    @NotBlank(groups = {ValidationGroups.Update.class})
    private Long id;

    /**
     * <p>yue-open-devops-deploy admin后台地址：用于部署异常快速查看日志，有助于方便排查 CD 失败时的异常详情。
     */
    private String yueOpenDevopsDeployAdminUrl;

    /**
     * 钉钉DevOps机器人Webhook
     */
    @NotBlank
    private String dingtalkDevopsRobotWebhook;

    /**
     * 钉钉DevOps机器人密钥，机器人安全设置页面，加签一栏下面显示的SEC开头的字符串
     * <p>不采用加签验证时可不填
     * <p>可选的</p>
     */
    private String dingtalkDevopsRobotSignSecret;

    /**
     * 钉钉通知@群成员手机号
     */
    private List<String> dingtalkAtMobiles;

}
